package com.study.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.study.system.common.model.Option;
import com.study.system.model.entity.SysDept;
import com.study.system.model.form.DeptForm;
import com.study.system.model.query.DeptQuery;
import com.study.system.model.vo.DeptVO;

import java.util.List;


public interface SysDeptService extends IService<SysDept> {

    List<DeptVO> listDepartments(DeptQuery queryParams);


    List<Option> listDeptOptions();


    Long saveDept(DeptForm formData);


    Long updateDept(Long deptId, DeptForm formData);


    boolean deleteByIds(String ids);


    DeptForm getDeptForm(Long deptId);
}
